package site.beanyon.now.model.po;

import java.util.Date;

/**
 * 时间计划持久化对象
 */
public class TimePlanPO {
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 活动名称
     */
    private String activity;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 时间计划的状态（0：未生效，1：生效）
     */
    private Byte status;
    /**
     * 创建时间
     */
    private Date createdAt;

    public TimePlanPO() {
    }

    public TimePlanPO(Integer id, String activity, Integer userId, Byte status, Date createdAt) {
        this.id = id;
        this.activity = activity;
        this.userId = userId;
        this.status = status;
        this.createdAt = createdAt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActivity() {
        return activity;
    }

    public void setActivity(String activity) {
        this.activity = activity;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "TimePlanPO{" +
                "id=" + id +
                ", activity='" + activity + '\'' +
                ", userId=" + userId +
                ", status=" + status +
                ", createdAt=" + createdAt +
                '}';
    }
}
